package zookeeperhello.zookeeperhello;

import org.I0Itec.zkclient.ZkClient;


public class Zkclient {
	public static void main(String[] args) {
		ZkClient zkClient = new ZkClient("127.0.0.1:2181");
		String node = "/demoNote";
//		String node = "/ZkClient-zhangning/erji";
		if (!zkClient.exists(node)) {
			zkClient.createPersistent(node, "hello demoNoteClient");
		}
		//System.out.println(zkClient.readData(node));
	}
}
